package com.atguign.gulimall.product.feign;

import com.atguign.gulimall.product.feign.fallback.SeckillFeignServiceFallBack;
import com.atguigu.common.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @program: gulimall
 * @description: gulimall-coupon
 * @author: liuxvru
 * @create: 2024-02-19 17:30
 **/
@FeignClient(value = "gulimall-seckill",fallback = SeckillFeignServiceFallBack.class)
public interface SeckillFeifnService {
    @GetMapping("/sku/seckill/{skuIf}")
    R getSeckillSkuInfo(@PathVariable("skuIf") Long skuIf);
}
